import axios from "axios";


axios.defaults.baseURL = "http://chst.vip"

//添加商品

export const addProduct = (param) => axios.post('/product/add_product', {
    ...param
})


//获取类目

export const getCategory = () => axios.get("/category/getCategory")


//获取商品

export const getProduct = (product_id) => axios.get("/product/get_product?product_id=" + product_id)